<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <title>Document</title>
    <script src="jquery-3.3.1.min.js"></script>
  </head>
  <body>
    <a href="1.html">点我</a>
    <script>
      $(document).on("click", function () {
        console.log("单击了document");
      });
      $("a").on("click", function (event) {
        event.preventDefault();	  // 阻止事件默认行为
        // event.stopPropagation();	// 阻止事件冒泡
        console.log("单击了a");
      });
    </script>
  </body>
</html>